﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usersvc.aspx.cs" Inherits="weba.usersvc" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1GridView" TagPrefix="wijmo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
                <table border="0" cellpadding="2" cellspacing="0">
            <tr>
                <td>客户名／企业名称:<input runat="server" id="txtSearchKey" maxlength="20"
                    class="txtInput" />
                &nbsp;状态:<asp:DropDownList ID="DDlState" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">公共客户</asp:ListItem>
                    <asp:ListItem Value="1">占用客户</asp:ListItem>
                    <asp:ListItem Value="2">成交客户</asp:ListItem>
                </asp:DropDownList>
                &nbsp;类型:<asp:DropDownList ID="DDlClass" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="1">供应商</asp:ListItem>
                    <asp:ListItem Value="0">代理商</asp:ListItem>
                </asp:DropDownList>
                    &nbsp;</td>
                <td rowspan="2">
                    <asp:Button ID="BtnSearch" runat="server" Text="查询信息" 
                        OnClick="PagerUserService_PageChanged" Height="40px" />&nbsp;
                    <asp:Button ID="BtnUpdate" runat="server" Text="分配客户" 
                    onclick="BtnUpdate_Click" BackColor="#009999" Font-Bold="True" 
                        ForeColor="White" Height="40px" />&nbsp;
               <asp:Button ID="Button1" runat="server" Text="添加客户" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td>客户等级:<asp:DropDownList ID="DDLLeave" runat="server">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="0">普通会员</asp:ListItem>
                    <asp:ListItem Value="1">高级会员</asp:ListItem>
                    <asp:ListItem Value="2">审核会员</asp:ListItem>
                    <asp:ListItem Value="3">联盟会员</asp:ListItem>
                </asp:DropDownList>
                &nbsp;所在地区：<asp:DropDownList ID="DDLProvince" runat="server">
                        <asp:ListItem Value="-1">全国</asp:ListItem>
                        <asp:ListItem Value="0">广东省</asp:ListItem>
                    </asp:DropDownList>
                &nbsp;归属:<asp:DropDownList ID="DDlService" runat="server" AppendDataBoundItems="True" DataSourceID="LinqDataSource1" DataTextField="T_ServiceName" DataValueField="T_ServiceID">
                    <asp:ListItem Value="-1" Selected="True">所有</asp:ListItem>
                </asp:DropDownList>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="weba.sjklqDataContext" EntityTypeName="" TableName="T_ServiceUser">
                    </asp:LinqDataSource>
                </td>
            </tr>
        </table>
        <wijmo:C1GridView ID="C1GridView1" runat="server" AutogenerateColumns="False" GroupAreaCaption="将这里的一列拖去与那一列分组。" LoadingText="载入中...">
            <Columns>
                <wijmo:C1TemplateField>
                    
                    <HeaderTemplate>
                       <table cellpadding="3"       cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th style="width: 10%;">
                                操作
                            </th>
                            <th style="width: 7%;">
                                类型
                            </th>
                            <th style="width: 8%;">
                                等级
                            </th>
                            <th style="width: 15%;">
                                状态
                            </th>
                            <th style="width: 15%;">
                                客户名
                            </th>
                            <th style="width: 35%;">
                                企业名称
                            </th>
                            <th style="width: 13%;">
                                录入时间
                            </th>
                        </tr>
                    </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                      <tr>
                    <td>
                        <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("T_UserID") %>' />
                        <br />
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"usergengzhong.aspx?id="+Eval("T_UserID") %>'>管理记录</asp:HyperLink>
                        <%--<a title="查看详细信息.." 
                        href='<%#"usergengzhong.aspx?id="+Eval("T_UserID") %>' id='<%#Eval("T_UserID") %>' class="GetMes">
                        <img src="Images/LookMes.gif"/></a>--%>
                    </td>
                    <td>
                        <%# Eval("T_UserType")%>
                    </td>
                    <td>
                        <%# Eval("T_UserLeave")%>
                    </td>
                    <td>
                        <%#weba.dl.UserState(Eval("T_UserState"), 
                        Eval("T_NowService"))%>
                    </td>
                    <td>
                        <%# Eval("T_Person")%>
                    </td>
                    <td>
                        <%#Eval("T_CompanyName")%>
                    </td>
                    <td>
                        <%#Eval("T_DateTime","{0:yyyy-MM-dd}")%>
                    </td>
                </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </wijmo:C1TemplateField>
            </Columns>
        </wijmo:C1GridView>
            
    </div>
    </form>
</body>
</html>
